Block Group: | Table Operations |
Icon: |
![]() |
The Group By block returns a new table that contains one row for each group of rows in the input table. A group is composed of rows that hold an identical value in the specified column.
The following properties of the Group By block can take input and give output.
input receives the table containing the values that you want to group.
baseColumn specifies the name of the table column to use for creating groups. Rows that hold an identical value in this column will be grouped together.
nestedData specifies whether to keep the original rows and store them in a new column of the output table as nested tables.
includeBlankValue specifies whether to create a group for an empty cell in baseColumn, if any empty cells exist.
column n specifies the name of an input table column to include in the output table.
method n specifies the value that will be stored in column n. method n can be one of the following:
outColumn n specifies the output table column name for the column of grouped column n values.
The following property of the Group By block can give output but cannot take input.
The following image shows an example of the Group By block. In this example, rows are grouped using the values in the v1 column. The output table displays a sum of v2 values and a list of v3 values for each group.